package com.example.websocket.websocket.service;

import com.example.websocket.websocket.pojo.Message;
import com.example.websocket.websocket.pojo.MessageRecord;

import java.util.List;

public interface MessageRecordService {
    void saveMessage(Message message, String username);

    /**
     * 获取消息
     *
     * @param toUser
     * @param fromUser
     * @return
     */
    List<MessageRecord> getMessage(String toUser, String fromUser);

    List<String> getChatFriends(String username);
}
